<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<table align="center" width="80%">
    <tr>
        <td>
<h3>确认删除此共享资料?</h3>
<hr>
共享资料名称:<c:out value="${sharedfile.name}" escapeXml="false"/><br>
共享资料描述:<pre><c:out escapeXml="false" value="${sharedfile.description}"/></pre>
<hr>
<html:form action="/sf" onsubmit="return validateConfirmDeleteForm(this);">
    <input type="hidden" name="id" value="<c:out value="${sharedfile.id}"/>"/>
    <html:hidden property="action" value="delete"/>
    验证码<html:text property="vc" size="4" maxlength="4" value=""/>*(输入右边图片上的数字)<img src="<%=request.getContextPath()%>/vcimg" width="40" height="20" border="0" align="absbottom" alt="验证码"/><br>
    <html:submit value="确认删除"/>(删除此共享资料将同时删除相关评论并且不能恢复.)
</html:form>
<script type="text/javascript">
    function validateConfirmDeleteForm(pForm)
    {
        if(pForm.vc.value == "" || pForm.vc.value.length < 4)
        {
            alert("[验证码]必须填写正确");
            pForm.vc.focus();
            return false;
        }
        return true;
    }
</script>    
    </td>
  </tr>
</table>  